#include <string.h>
#include <stdio.h>

char *my_strrchr(char const *str, int ch)
{
    char *prev_answer = NULL;

    for (; (str = strchr(str, ch)) != NULL; str += 1)
    {
        prev_answer = str;
    }
    return prev_answer;
}